package com.xqboss.common.constant;

/**
 * 缓存的key 常量
 *
 * @author Administrator
 */
public class CacheConstants {
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 在线状态 redis key
     */
    public static final String IS_ONLINE = "is_online:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     * 验证码错误次数 redis key
     */
    public static final String SMS_ERR_CNT = "sms_err_cnt:";

    /**
     * 身份验证 redis key
     */
    public static final String AUTHENTICATION_KEY = "authentication:";

    /**
     * 队伍排行 redis key
     */
    public static final String TEAM_TOP_KEY = "team_tops:";

    /**
     * 市场一级分页列表 cache key
     */
    public static final String MARKET_LIST_KEY = "page_list_key:market";

    /**
     * 市场二级分页列表 cache key
     */
    public static final String MARKET_EXTEND_LIST_KEY = "page_list_key:market_extend";

    /**
     * 身份晋升冷却时间
     */
    public static final String COOLDOWN_TIME_FOR_IDENTITY_PROMOTION = "identity_promotion:cooldown_time:";

    /**
     * 所有用户存入redis的热豆使用次数
     */
    public static final String USER_HOT_BEANS_COUNT_ALL_KEY = "user_all_hit_count";

    /**
     * 当前用户已使用热豆转增次数
     */
    public static final String USER_HOT_BEANS_COUNT_KEY = "user_hit_count:"; // 用法:USER_HOT_BEANS_COUNT_KEY + userId

    /**
     * 用户已使用扳手转赠次数
     */
    public static final String USER_WRENCH_COUNT_ALL_KEY = "user_all_hit_wrench_count";

    /**
     * 用户已使用力豆转赠次数
     */
    public static final String USER_LIDOU_COUNT_ALL_KEY = "user_all_hit_lidou_count";

    /**
     * 当前用户已使用扳手转增次数
     */
    public static final String USER_WRENCH_COUNT_KEY = "user_hit_wrench_count:"; // 用法:USER_WRENCH_COUNT_KEY + userId

    /**
     * 消息推送弹窗关闭时长
     */
    public static final String KEY_USER_MSG_PUSH_CLOSE_TIME = "msg-push:close-time:";

    /**
     * 游戏材料冲击记录需要播报的消息
     */
    public static final String GAME_MATERIAL_STRIKE_BARRAGE = "game:material_strike_barrage";
    /**
     * 游戏列表数据缓存
     */
    public static final String GAME_LIST = "game:list";

}
